"""
s="abcdef"
print(s.upper())
"""

"""
shopping_list = ["book","table","food"]
print(shopping_list)
shopping_list.append("eggs")
print(shopping_list)
shopping_list.remove("food")
print(shopping_list)
print(shopping_list[0])
shopping_list[0] = "123"
print(shopping_list)
price = [12,34,56,78]
max_price = max(price)
min_price = min(price)
sorted_price = sorted(price)
print(max_price)
print(min_price)
print(sorted_price)
"""

#元组
"""
shopping_tuple = ("book","book")
print(shopping_tuple) 
"""


"""
phone_number = {"小明":"9345333",
                "小红":"9544334"}
phone_number["小丽"] = "9345333"
phone_number["小马"] = "9345333"
phone_number["小张"] = "9345333"
phone_number["小王"] = "9345333"


name = input("请输入你想查询的电话名称：")
if name in phone_number:
    print("您查询的" + name + "电话如下")
    print(phone_number[name])
else:
    print("未查询到" + name + "的电话")
    print("目前已录入" + str(len(phone_number)) + "位电话")

"""

"""
print("你好，我是一个计算平均值的程序")
num = input("请输入要求的数字（结尾用q结束）：")
total = 0
count = 0
while num != "q":
    total = total + float(num)
    count += 1
    num = input("请输入要求的数字（结尾用q结束）：")
if count == 0:
    result = 0
else:
    result = total/count
print(result)
"""
 